﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using QJ.CMS.Models;

namespace QJ.CMS
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {

            

            //routes.Add("zc", new DomainRoute(
            //    "zc.changerbank.com",                                     // Domain with parameters
            //    "{action}/{id}",                                        // URL with parameters
            //    new { controller = "Default", action = "Index", id = "" }  // Parameter defaults
            //));
              

       

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Change", action = "Index", id = UrlParameter.Optional },
                namespaces: new string[] { "QJ.CMS.Controllers" }
            );
       

        //    routes.MapRoute(
        //        name: "Change",
        //        url: "{controller}/{action}/{id}",
        //        defaults: new { controller = "Change", action = "Index", id = UrlParameter.Optional },
        //        namespaces: new string[] { "QJ.CMS.Controllers" }
        //    );
       
        }
    }
}